import prompt from '@system.prompt';

export default {
    data: {
        title: "",
        username: "",
        password: ""
    },
    onInit() {
        this.title = this.$t('strings.world');
    },
    inputUsername(e) {
        this.username = e.value;
    },
    inputPassword(e) {
        this.password = e.value;
    },
    login() {
        let hint = this.username == "admin" && this.password == "123456" ? "登录成功" : "登录失败";
        prompt.showToast({
            message: hint
        });
    }
}
